package com.colorful.insuranceproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class UserDetailsInfo implements Parcelable {

    private String brithday;//生日

    private String userId;//用户id

    private boolean isphone;//是否绑定电话号码

    private String userPhoto;//头像地址

    private String userPhone;//电话号码

    private String userSex;//性别

    private String userName;//昵称

    private boolean ispaypwd;//是否设置了支付密码

    private int age;//年龄

    private String chatimg;//  头像

    private String type;//  登陆对象

    private int userScore;//  用户积分

    private int userTotalScore;//用户总积分

    private String payPwd;////是否设置支付密码

    private boolean userAddressIsSet;//是否设置了收货地址

    private boolean userPayPwdIsSet;//是否设置了支付密码

    private String colorCardMoney;//可乐卡余额

    private String userMoney;//用户的余额

    private String colorfulCardNum;//可乐卡数量

    private String giftCardNum;//礼品卡数量

    private String couponCardNum;//优惠券数量


    public UserDetailsInfo() {
    }

    public UserDetailsInfo(String brithday, String userId, boolean isphone, String userPhoto, String userPhone, String userSex, String userName, boolean ispaypwd, int age, String chatimg, String type, int userScore, int userTotalScore, String payPwd, boolean userAddressIsSet, boolean userPayPwdIsSet, String colorCardMoney, String userMoney, String colorfulCardNum, String giftCardNum, String couponCardNum) {
        this.brithday = brithday;
        this.userId = userId;
        this.isphone = isphone;
        this.userPhoto = userPhoto;
        this.userPhone = userPhone;
        this.userSex = userSex;
        this.userName = userName;
        this.ispaypwd = ispaypwd;
        this.age = age;
        this.chatimg = chatimg;
        this.type = type;
        this.userScore = userScore;
        this.userTotalScore = userTotalScore;
        this.payPwd = payPwd;
        this.userAddressIsSet = userAddressIsSet;
        this.userPayPwdIsSet = userPayPwdIsSet;
        this.colorCardMoney = colorCardMoney;
        this.userMoney = userMoney;
        this.colorfulCardNum = colorfulCardNum;
        this.giftCardNum = giftCardNum;
        this.couponCardNum = couponCardNum;
    }

    public String getBrithday() {
        return brithday;
    }

    public void setBrithday(String brithday) {
        this.brithday = brithday;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public boolean isphone() {
        return isphone;
    }

    public void setIsphone(boolean isphone) {
        this.isphone = isphone;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public boolean ispaypwd() {
        return ispaypwd;
    }

    public void setIspaypwd(boolean ispaypwd) {
        this.ispaypwd = ispaypwd;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getChatimg() {
        return chatimg;
    }

    public void setChatimg(String chatimg) {
        this.chatimg = chatimg;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getUserScore() {
        return userScore;
    }

    public void setUserScore(int userScore) {
        this.userScore = userScore;
    }

    public int getUserTotalScore() {
        return userTotalScore;
    }

    public void setUserTotalScore(int userTotalScore) {
        this.userTotalScore = userTotalScore;
    }

    public String getPayPwd() {
        return payPwd;
    }

    public void setPayPwd(String payPwd) {
        this.payPwd = payPwd;
    }

    public boolean isUserAddressIsSet() {
        return userAddressIsSet;
    }

    public void setUserAddressIsSet(boolean userAddressIsSet) {
        this.userAddressIsSet = userAddressIsSet;
    }

    public boolean isUserPayPwdIsSet() {
        return userPayPwdIsSet;
    }

    public void setUserPayPwdIsSet(boolean userPayPwdIsSet) {
        this.userPayPwdIsSet = userPayPwdIsSet;
    }

    public String getColorCardMoney() {
        return colorCardMoney;
    }

    public void setColorCardMoney(String colorCardMoney) {
        this.colorCardMoney = colorCardMoney;
    }

    public String getUserMoney() {
        return userMoney;
    }

    public void setUserMoney(String userMoney) {
        this.userMoney = userMoney;
    }

    public String getColorfulCardNum() {
        return colorfulCardNum;
    }

    public void setColorfulCardNum(String colorfulCardNum) {
        this.colorfulCardNum = colorfulCardNum;
    }

    public String getGiftCardNum() {
        return giftCardNum;
    }

    public void setGiftCardNum(String giftCardNum) {
        this.giftCardNum = giftCardNum;
    }

    public String getCouponCardNum() {
        return couponCardNum;
    }

    public void setCouponCardNum(String couponCardNum) {
        this.couponCardNum = couponCardNum;
    }

    @Override
    public String toString() {
        return "UserDetailsInfo{" +
                "brithday='" + brithday + '\'' +
                ", userId='" + userId + '\'' +
                ", isphone=" + isphone +
                ", userPhoto='" + userPhoto + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userSex='" + userSex + '\'' +
                ", userName='" + userName + '\'' +
                ", ispaypwd=" + ispaypwd +
                ", age=" + age +
                ", chatimg='" + chatimg + '\'' +
                ", type='" + type + '\'' +
                ", userScore=" + userScore +
                ", userTotalScore=" + userTotalScore +
                ", payPwd='" + payPwd + '\'' +
                ", userAddressIsSet=" + userAddressIsSet +
                ", userPayPwdIsSet=" + userPayPwdIsSet +
                ", colorCardMoney='" + colorCardMoney + '\'' +
                ", userMoney='" + userMoney + '\'' +
                ", colorfulCardNum='" + colorfulCardNum + '\'' +
                ", giftCardNum='" + giftCardNum + '\'' +
                ", couponCardNum='" + couponCardNum + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.brithday);
        dest.writeString(this.userId);
        dest.writeByte(this.isphone ? (byte) 1 : (byte) 0);
        dest.writeString(this.userPhoto);
        dest.writeString(this.userPhone);
        dest.writeString(this.userName);
        dest.writeString(this.userSex);
        dest.writeByte(this.ispaypwd ? (byte) 1 : (byte) 0);
        dest.writeInt(this.age);
        dest.writeString(this.chatimg);
        dest.writeString(this.type);
        dest.writeInt(this.userScore);
        dest.writeInt(this.userTotalScore);
        dest.writeString(this.payPwd);
        dest.writeByte(this.userAddressIsSet ? (byte) 1 : (byte) 0);
        dest.writeByte(this.userPayPwdIsSet ? (byte) 1 : (byte) 0);
        dest.writeString(this.colorCardMoney);
        dest.writeString(this.userMoney);
        dest.writeString(this.colorfulCardNum);
        dest.writeString(this.giftCardNum);
        dest.writeString(this.couponCardNum);
    }

    protected UserDetailsInfo(Parcel in) {
        this.brithday = in.readString();
        this.userId = in.readString();
        this.isphone = in.readByte() != 0;
        this.userPhoto = in.readString();
        this.userPhone = in.readString();
        this.userName = in.readString();
        this.userSex = in.readString();
        this.ispaypwd = in.readByte() != 0;
        this.age = in.readInt();
        this.chatimg = in.readString();
        this.type = in.readString();
        this.userScore = in.readInt();
        this.userTotalScore = in.readInt();
        this.payPwd = in.readString();
        this.userAddressIsSet = in.readByte() != 0;
        this.userPayPwdIsSet = in.readByte() != 0;
        this.colorCardMoney = in.readString();
        this.userMoney = in.readString();
        this.colorfulCardNum = in.readString();
        this.giftCardNum = in.readString();
        this.couponCardNum = in.readString();
    }

    public static final Creator<UserDetailsInfo> CREATOR = new Creator<UserDetailsInfo>() {
        @Override
        public UserDetailsInfo createFromParcel(Parcel source) {
            return new UserDetailsInfo(source);
        }

        @Override
        public UserDetailsInfo[] newArray(int size) {
            return new UserDetailsInfo[size];
        }
    };
}